package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbIntegralLossDao;
import com.gtw.modules.entity.TbIntegralLoss;
import com.gtw.modules.sys.service.SysIntegralLossService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/** 积分日耗结算接口实现类
 * Created by wuye on 2018/1/31.
 */
@Service
public class SysIntegralLossServiceImpl implements SysIntegralLossService {

    @Autowired
    private TbIntegralLossDao tbIntegralLossDao;

    @Override
    public TbIntegralLoss queryObject(Integer id){
        return tbIntegralLossDao.queryObject(id);
    }

    @Override
    public List<TbIntegralLoss> queryList(Map<String, Object> map){
        return tbIntegralLossDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return tbIntegralLossDao.queryTotal(map);
    }

    @Override
    public void save(TbIntegralLoss integralLoss){
        tbIntegralLossDao.save(integralLoss);
    }

    @Override
    public void update(TbIntegralLoss integralLoss){
        tbIntegralLossDao.update(integralLoss);
    }

    @Override
    public void delete(Integer id){
        tbIntegralLossDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        tbIntegralLossDao.deleteBatch(ids);
    }
}
